public class demo1 {
    public static void main(String[] args) {
        //1.定义一组数字
        int[] arry = {1,9,8,3};
        //2.每个数字加5
        for (int i = 0; i < arry.length; i++) {
            arry[i]+=5;
        }
        //3.每个数字对10去余
        for (int i = 0; i < arry.length; i++) {
            arry[i]%=10;
        }
        //4.反转数组
        for (int i = 0, j = arry.length - 1; i < j; i++,j--) {
            int temp = arry[i];
            arry[i] = arry[j];
            arry[j] = temp;
        }
        //打印数组
        for (int i = 0; i < arry.length; i++) {
            System.out.println(arry[i] + " ");
        }
        //5.把数组拼接
        int number = 0;
        for (int i = 0; i < arry.length; i++) {
            number = number *10 +arry[i];
            System.out.println(number);
        }
    }
}
